package com.blrs.service.poliy.impl;

import java.util.List;

import com.blrs.service.poliy.IPolicyReceptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blrs.mapper.PolicyReceptionMapper;
import com.blrs.domain.PolicyReception;

/**
 * 政策接收Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-09
 */
@Service
public class PolicyReceptionServiceImpl implements IPolicyReceptionService
{
    @Autowired
    private PolicyReceptionMapper policyReceptionMapper;

    /**
     * 查询政策接收
     * 
     * @param policyId 政策接收主键
     * @return 政策接收
     */
    @Override
    public PolicyReception selectPolicyReceptionByPolicyId(String policyId)
    {
        return policyReceptionMapper.selectPolicyReceptionByPolicyId(policyId);
    }

    /**
     * 查询政策接收列表
     * 
     * @param policyReception 政策接收
     * @return 政策接收
     */
    @Override
    public List<PolicyReception> selectPolicyReceptionList(PolicyReception policyReception)
    {
        return policyReceptionMapper.selectPolicyReceptionList(policyReception);
    }

    /**
     * 新增政策接收
     * 
     * @param policyReception 政策接收
     * @return 结果
     */
    @Override
    public int insertPolicyReception(PolicyReception policyReception)
    {
        return policyReceptionMapper.insertPolicyReception(policyReception);
    }

    /**
     * 修改政策接收
     * 
     * @param policyReception 政策接收
     * @return 结果
     */
    @Override
    public int updatePolicyReception(PolicyReception policyReception)
    {
        return policyReceptionMapper.updatePolicyReception(policyReception);
    }

    /**
     * 批量删除政策接收
     * 
     * @param policyIds 需要删除的政策接收主键
     * @return 结果
     */
    @Override
    public int deletePolicyReceptionByPolicyIds(String[] policyIds)
    {
        return policyReceptionMapper.deletePolicyReceptionByPolicyIds(policyIds);
    }

    /**
     * 删除政策接收信息
     * 
     * @param policyId 政策接收主键
     * @return 结果
     */
    @Override
    public int deletePolicyReceptionByPolicyId(String policyId)
    {
        return policyReceptionMapper.deletePolicyReceptionByPolicyId(policyId);
    }
}
